package com.dhcc.bpm.modules.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.core.mp.base.BaseEntity;

/**
 * 实体类
 *
 * @author donghang
 * @since 2020-03-18
 */
@Data
@TableName("opc_externalcall")
@ApiModel(value = "Externalcall对象", description = "Externalcall对象")
public class Externalcall extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* IP
	*/
		@ApiModelProperty(value = "IP")
		private String ip;
	/**
	* 端口号
	*/
		@ApiModelProperty(value = "端口号")
		@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
		private Long port;
	/**
	* 权重
	*/
		@ApiModelProperty(value = "权重")
		@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
		private Long weight;
	/**
	* 关联后端服务id
	*/
		@ApiModelProperty(value = "关联后端服务id")
		@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
		private Long backserviceId;
	/**
	* 描述
	*/
		@ApiModelProperty(value = "描述")
		@TableField(value = "`describe`")
		private String describe;

	/**
	 * 导出数据标识
	 */
	@ApiModelProperty(value = "导出数据标识")
	@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
	private String expSeq;

	/**
	 * 服务识别码
	 */
	@ApiModelProperty(value = "服务识别码")
	@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
	private String serverCode;
	/**
	 * 服务识别码获取路径
	 */
	@ApiModelProperty(value = "服务识别码获取路径")
	@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
	private String codePath;
}
